window.onload = function() {

	oBtn = document.getElementById('btn1');
	oText = document.getElementById('text1');
	oUl = document.getElementById('ul1');

	oBtn.onclick = sendMessage;
};

var oBtn = null;
var oText = null;
var oUl = null;

function sendMessage() {
	var oLi = document.createElement('li');
	oLi.innerHTML = '<li>' + oText.value + '</li>';

	oUl.appendChild(oLi);
}
